package cn.itcast.encapsulation;

/**
 *
 感受封装的魅力
 */
public class Encap01 {
    public static void main(String[] args) {
        Employee employee = new Employee();
        employee.setName("java阿斯顿");
        employee.setAge(210);
        employee.setSalary(3000.5);
        employee.setJob("工程师");
        employee.info();
    }
}

